package math;

public class Test {
	public static void main(String[] args) throws CloneNotSupportedException{
		//浅克隆可以理解为只是克隆了属性，并没有克隆值；
		Student s1=new Student();
		s1.setName("张丽");
		s1.setAge(20);
		System.out.println(s1);
		System.out.println("s1===>"+s1.hashCode());
		
		Student s2=s1.clone();
		s2.setAge(22);
		System.out.println(s2);
		System.out.println("s2====>"+s2.hashCode());
		
		String s3="123";
		String s4="1235";
		System.out.println(s3==s4);
		
		System.out.println(s3.compareTo(s4));
		
		String s5="53012919950202257x";
		System.out.println(s5.substring(6, 14));
		
		System.out.println("==================");
		String s6="   abcd    ";
		System.out.println(s6.trim());
		System.out.println("==================");
		String s7="qwer";
		System.out.println(s7.concat(s3));
		System.out.println("==================");
		String s8="poi";
		String s9=s8.replace(s8, s7);
		System.out.println(s9);
		System.out.println("==================");
		String s10="ab,cd,ef,g";
		String [] s11=s10.split(",");
		for(String string:s11){
			System.out.print(string);
		}
		
		
		
	}

}
